TryEnumerateValuesForKey Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Enumerate all of the values associated with a given key. If the key exists and has values associated with it, an enumerator for those values is returned throught values. If the key does not exist, false is returned.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
protected override sealed bool TryEnumerateValuesForKey(
	TKey key,
	out IEnumerator<TValue> values
)
Visual Basic (Declaration)
Protected Overrides NotOverridable Function TryEnumerateValuesForKey ( _
	key As TKey, _
	<OutAttribute> ByRef values As IEnumerator(Of TValue) _
) As Boolean
Visual C++
protected:
virtual bool TryEnumerateValuesForKey (
	TKey key, 
	[OutAttribute] IEnumerator<TValue>^% values
) override sealed

Parameters

key
TKey
The key to get values for.
values
IEnumerator<(Of <TValue>)>%
If true is returned, this parameter receives an enumerators that enumerates the values associated with that key.

Return Value

True if the key exists and has values associated with it. False otherwise.

See Also